ostree/trivial-httpd: Add --random-408s command line option
authorPhilip Withnall <withnall@endlessm.com>
Mon, 28 May 2018 15:24:33 +0000 (16:24 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 30 May 2018 16:23:57 +0000 (16:23 +0000)
commit97c348d65b989993cdf995e37a28936faa4ec1b2
treeb58d0274eb7457f1f32211e5715a78d84f7e4483
parent224f3cdd24e81de6f490fdcd93b114bbb7d4ab8a
ostree/trivial-httpd: Add --random-408s command line option

This is exactly like the --random-500s option, except that it will cause
error 408 (request timeout) to be returned, rather than error 500
(internal server error).

This will be used in a following commit to test pull behaviour when
timeouts occur.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1594
Approved by: jlebon
src/ostree/ostree-trivial-httpd.c